﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="TimkiemDanhmuc.aspx.cs" Inherits="hoangnam12.Page.Timkiem" %>
<%@Register Assembly= "CollectionPager" Namespace="SiteUtils" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="NamHolder" runat="server">




    <tr>
        <td>
            <asp:DataList ID="DataList2" runat="server" 
                RepeatColumns="2" onitemcommand="DataList2_ItemCommand" DataKeyField = "MaSP">
                <ItemTemplate>
                    <table style="width: 100%;">
                        <tr>
                            <td>
                                <asp:Image ID="Image1" runat="server" Height="319px" Width="354px" 
                                    ImageUrl='<%# Bind("HinhSP") %>' />
                            </td>
                        </tr>
                        <tr>
                            <td align="center">
                                
                                <asp:HyperLink ID="HyperLink1" runat="server" Text='<%# Bind("TenSP") %>' NavigateUrl = '<%# "ChitietSP.aspx?ID=" + Eval("MaSP") %>' 
                                    ForeColor="#0066FF"></asp:HyperLink>
                               
                            </td>
                        </tr>
                        <tr>
                            <td align="center">
                                
                                <span style="color: #0066FF"><strong>Giá:</strong></span>
                                <asp:Label ID="GiaSPLabel" runat="server" Text='<%# Bind("GiaSP") %>' 
                                    style="font-weight: 700; color: #0066FF" />
                                
                                &nbsp;<span style="color: #0066FF"><strong>vn&#273;</strong></span></td>
                        </tr>
                        <tr>
                            <td align="center">
                                <asp:ImageButton ID="ImageButton1"   runat="server"
                                ImageUrl="~/images/icon-mua-hang.png" CommandArgument='<%# Bind("MaSP") %>' 
                                     CommandName="Chonmua"  />
                            </td>
                        </tr>
                    </table>
                </ItemTemplate>
            </asp:DataList>
            <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                ConnectionString="<%$ ConnectionStrings:QLBHConnectionString %>" 
                SelectCommand="SELECT [MaSP] ,[TenSP], [GiaSP], [HinhSP], [IDDanhMuc] FROM [SanPham] WHERE ([IDDanhMuc] = @IDDanhMuc)">
                <SelectParameters>
                    <asp:QueryStringParameter Name="IDDanhMuc" QueryStringField="ID" 
                        Type="String" />
                </SelectParameters>
            </asp:SqlDataSource>
            <p>
                &nbsp;<cc1:CollectionPager ID = "clPager" runat = "server" BackText="« Tr&#432;&#7899;c" 
                                FirstText="&#272;&#7847;u" LabelText="Trang:" LastText="Cu&#7889;i" NextText="Sau »" 
                                ResultsFormat="Hi&#7875;n th&#7883; {0}-{1} (of {2})" > </cc1:CollectionPager>
            </p>
        </td>
    </tr>
  




</asp:Content>

